package org.sky.cloud.common.notify.listener;


import org.sky.cloud.common.notify.Event;

import java.util.concurrent.Executor;

public abstract class Subscriber <T extends Event> {

    public abstract void onEvent(T event);

    public abstract Class<? extends Event> subscribeType();

    public Executor getExecutor(){
        return null;
    }
}
